<?
//set up table row
printf("<tr class=\"table_row%s\">", ($zebra & 1));
$zebra++;

//decide on website
if ($team->getWebsite() != '') {
	$website = "<a href=\"{$team->getWebsite()}\" title=\"{$team->getInformalName()}\" target=\"_blank\"><img src=\"images/globe.png\"></a>";
} else {
	$website = '';
}

//decide on photo
if ($team->getPhoto($event->getYear()) != '') {
	$photo = "<a href=\"" . $team->getPhoto($event->getYear()) . "\" rel=\"lightbox['teams']\" title=\"Team {$team->getTeamNumber()} - $event->getYear()\"><img src=\"" . $BASE_PATH . "images/camera_icon.png\" /></a>";
} else {
	$photo = '';
}

//decide on team name
if ($team->getInformalName()) {
	$teamname = "<strong>" . $team->getInformalName() . "</strong>";
} else {
	$teamname = $team->getName();
}

//spit it out
printf("<td><strong>%s</strong></td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\r",
	$team->getTeamNumber(), $photo, $team->linkto($event->getYear(), $teamname), $team->getLocation(), $website);
?>